package com.sxz.mall.order.feign;

import com.sxz.mall.common.utils.R;
import com.sxz.mall.order.vo.OrderItemSpuInfoVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(name = "mall-product") // 访问哪个名字的服务
public interface ProductService {

    // 访问的全路径
    @GetMapping("product/brand/all")
    R queryAllBrand();

    @GetMapping("/product/spuinfo/getOrderItemSpuInfoByIds/{spuIds}")
    List<OrderItemSpuInfoVO> getOrderItemSpuInfoByIds(@PathVariable("spuIds") Long[] spuIds);
}
